<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Liste clinique</title>
<title></title>
<?php include('include/include_link22.php');?> 
</head>

<body class="ficheclinique listeclinique">
     <?php include('include/fixedLeftMenu.php');?>
<?php include('include/variable_session.php');?>
<div class="main_container">
	<div id="wraper">
           
        	<!--Header debut-->
        	<?php include('include/header.php');?>  
            <!-- debut content -->
            <!--Header fin-->
            <!--Content debut-->
                <div class="page sizing">
            	
                <div class="titre">
                	<h1 class=" pull-left"><?php echo $this->lang->line('clinicLisTitle');?></h1>
                </div>
                <div class="clear"></div>
                <!--liste debut-->
                <?php
                foreach ($result as $key => $list) {
                $lg = $_SESSION['lg'];
                $_SESSION['pays']=$pays = $this->mod_clinic->getPaysClinic($list['ID_PAYS']);
                $_SESSION['ville']=$ville = $this->mod_clinic->getVilleClinic($list['ID_VILLE']);
                $imgHead = $this->mod_listclinic->getClinicImgHead($list['ID_CLI']);
                $cliLogo = $this->mod_listclinic->getClinicLogo($list['ID_CLI']);
                $_SESSION['nom_cli']=$nom_cli = $list['NOM_CLI'];
                $nom_url = $list['NOM_URL'];
                ?>
                <div class="liste">
                	<div class=" pull-left photo">
                        <a href="<?php echo base_url()."$lg/cliniques-dentaires/$pays/$ville/$nom_url"; ?>" title="Chrysanthemum">
                        <?php if(!empty($imgHead)) { ?>
                            <img src="<?php echo base_url();?>images/dentalClinicImg/<?php echo $imgHead[0]['SRC']; ?>" title="<?php echo $imgHead[0]['SRC']; ?>" alt="<?php echo $imgHead[0]['SRC']; ?>" />
                        <?php } else { ?> 
                            <img src="<?php echo base_url();?>images/dentalClinicImg/dentist_explain.jpg" title="" alt="" />
                        <?php } ?>    
                        </a>
                    </div>
                    <div class="pull-right Infos">
                    <div class="logoclin">
                        <a href="<?php echo base_url()."$lg/cliniques-dentaires/$pays/$ville/$nom_url"; ?>" title="acceuil">
                            
                            
                        <?php if(!empty($cliLogo)) { ?>
                            <img src="<?php echo base_url();?>images/dentalClinicLogo/<?php echo $cliLogo[0]['SRC']; ?>" title="" alt="walkdentalcare" />
                        <?php } else { ?> 
                            <img src="<?php echo base_url();?>images/dentalClinicLogo/logo01.png" title="" alt="" />
                        <?php } ?>
                            
                        </a>
                    </div>
                    	<h2 class="nomclinic">
                            <a href="<?php echo base_url()."$lg/cliniques-dentaires/$pays/$ville/$nom_url"; ?>" title="acceuil">
                                <?php echo $nom_cli; ?> 
                            </a>
                            <?php if($list['PARTNER_ID']>0){ ?>
                            <a class="" href="fiche-clinique.html" title="partenaire">
                                <img src="<?php echo base_url();?>fontv21/images/photo/partenaire.png" title="partenaire" alt="walkdentalcare" />
                            </a>
                            <?php } ?>        
                              <span class="pays">
                                <a href=" <?php echo base_url()."$lg/cliniques-dentaires/$pays"; ?>"> <?php echo $pays ?> </a>  - 
                                <a href=" <?php echo base_url()."$lg/cliniques-dentaires/$ville"; ?>"> <?php echo $ville ?> </a>
                              </span>
                        </h2>
                        
                        
                        <a class="pull-right" href="index.html" title="acceuil">
                            <?php echo $this->lang->line('selectThisClinic');?>
                        </a>
                        <div class="clear liner"></div>
                        
                        <div class="sizing mod_inscription_clinique pull-left coordonnees travel">
                            <h2><span class="title-insript-clinique"><strong><?php echo $list['IMPLANT'];?></strong>€</span></h2>
                            <a  href="index.html" title="acceuil"><?php echo $this->lang->line('dentalImplant');?></a>      
			</div>
                         <div class="sizing mod_inscription_clinique pull-left coordonnees travel">
                            <h2><span class="title-insript-clinique"><strong><?php echo $list['COURONE'];?></strong>€</span></h2>
                            <a  href="index.html" title="acceuil"><?php echo $this->lang->line('dentalCorone');?></a>       
			</div>
                        
                       
                       <p>
                       <?php $id_last_com = $this->mod_clinic->getIdLastComment($list['ID_CLI']);
                $last_com= $this->mod_clinic->getLastComment($id_last_com);
                if(strlen($last_com)>120){
                echo substr($last_com,0, 120);
                ?>
                <br /><a href="<?php echo base_url()."$lg/cliniques-dentaires/$pays/$ville/$nom_url"; ?>">Lire la Suite</a>
                <?php 
                 }  else {
                    echo $last_com;
                    }?>
                </p>
                        <div class="clear"></div>
                        <div class="comment">
                        <a href="index.html" title="acceuil">8 <?php echo $this->lang->line('commentNb');?></a>
                        <a class="rate" href="#" title="acceuil"></a>
                        <a class="rate" href="#" title="acceuil"></a>
                        <a class="rate" href="#" title="acceuil"></a>
                        <a class="rato" href="#" title="acceuil"></a>
                        <a class="rato" href="#" title="acceuil"></a>
                        </div>
                    </div>
                    <div class="clear"></div>
                </div>
                <?php } ?>
                <!--Liste Fin-->
                <div class="pagination">
                    <a href="#" title="walkdentalcare.com" title="walkdentalcare">&lt;&lt;</a>
                    <a href="#" title="walkdentalcare.com" title="walkdentalcare"> &lt;</a>
                    <a class="active"  href="#" title="walkdentalcare.com" title="walkdentalcare">1</a>
                    <a href="#" title="walkdentalcare.com" title="walkdentalcare">2</a>
                    <a href="#" title="walkdentalcare.com" title="walkdentalcare">3</a>
                    <a href="#" title="walkdentalcare.com" title="walkdentalcare">4</a>
                    <a href="#" title="walkdentalcare.com" title="walkdentalcare">&gt;</a>
                    <a href="#" title="walkdentalcare.com" title="walkdentalcare">&gt;&gt;</a>
                </div>
                
			</div>
            <!--Content fin-->
    </div>
            <!--Footer debut-->
            <footer id="footer" class="footer">
                <div class="bloc-footer">
                    <div class="col-footer pull-left">
                    	<h3 class="icon-infos">Infos</h3>
                        <ul>
                        	<li><a href="#">R&eacute;gles générales de diffusion</a></li>
                        	<li><a href="#">Infos pratiques</a></li>
                        	<li><a href="#">Guides assurance</a></li>
                        	<li><a href="#">Contact</a></li>
                        </ul>
                    </div>
                    <div class="col-footer pull-left espace-membre">
                    	<h3 class="icon-infos">Espace membre</h3>
                        <ul>
                        	<li><a href="#">Créer un compte clinique</a></li>
                        	<li><a href="#">Créer un compte patient</a></li>
                        </ul>
                    </div>
                    <div class="col-footer pull-left reseaux-soc">
                    	<h3 class="icon-infos">Réseaux sociaux</h3>
                        <ul>
                        	<li><a href="#" class="facebook"></a></li>
                        	<li><a href="#" class="twitter"></a></li>
                        	<li><a href="#" class="gplus"></a></li>
                        	<li><a href="#" class="youtube"></a></li>
                        	<li><a href="#" class="rss"></a></li>
                        </ul>
                    </div>
                    <div class="clear"></div>
                </div>  
                <div class="copyright">At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti</div>  
            </footer>          
            <!--Footer fin-->
      </div>   
      <script type="text/javascript" src="engine1/wowslider.js"></script>
	<script type="text/javascript" src="engine1/script.js"></script>   
</body>
</html>
